package com.cmccgz.udacs_landlord_webapp.main.cardmanager;

import com.cmccgz.baselibrary.base.BasePresenter;
import com.cmccgz.baselibrary.base.BaseView;
import com.cmccgz.udacs_landlord_webapp.bean.IdBean;

/**
 * 开卡授权约束类
 */
public interface CardAccreditContract {


    public interface Presenter extends BasePresenter {

        void selectNation();


        void completeCardAccredit(String mobile, String usermobile, String name, String sex, String idNumber, String nation, String birth, String houseId, String endTime);

        void scanId(String imgUrl);
    }

    interface View extends BaseView<CardAccreditContract.Presenter> {

        void showEmptyName();

        void showInvalidName();

        void showEmptyMobile();

        void showInvalidMobile();

        void showEmptyIdNumber();

        void showInvalidIdNumber();

        void showEmptyNation();

        void showEmptyBirthDate();

        void showEmptyHouse();

        void showEmptyEndTime();

        void showAllNation(String[] nations);

        void showLoadingDialog();

        void hideLoadingDialog();

        void showAccreditCardSuccess();

        void showAccreditCardError(String errMsg);

        void scanIdSuccess(IdBean idBean);
        void scanIdError(String msg);

    }


}
